local skynet    = require "skynet.manager"
local mongo     = require "skynet.db.mongo"
local conf      = require "conf"

skynet.start(function()
    assert(conf.debug, "只有测试环境下可用")

    local db = mongo.client({host = conf.mongo.host, port = conf.mongo.port})[conf.mongo.name]
    db.global:drop()
    db.rank:drop()
    db.role:drop()

    skynet.exit()
end)
